package org.cqc.config;

import org.cqc.component.SimulatorInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author caoqc
 * @Description:
 * @date 2022/01/29 17:01:46
 */
//@Configuration
public class InterceptorConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new SimulatorInterceptor())
                .addPathPatterns("/upapi/**");
    }
}
